package cn.edu.xaut.mybatisers.mall;

import cn.edu.xaut.mybatisers.mall.tool.Logo;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
@MapperScan("cn.edu.xaut.mybatisers.mall.Dao")
public class MallApplication {

    public static void main(String[] args) {
        System.setProperty("ROOTDIR", System.getProperty("user.dir"));
        System.setProperty("pictureSavePath", System.getProperty("user.dir") + "/static/CommodityPicture");
        if (false){
            System.setProperty("delayTask", "123");
            System.out.println("*************************************启用定时任务*************************************************");
        }else {
            System.out.println("*************************************不启用定时任务************************************************");
        }
        Logo.printLogo();
        SpringApplication.run(MallApplication.class, args);
    }
}
